#include"Stack.h"

void test() {
	ST st;
	STInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	while (!StackEmpty(&st)) {
		STDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}
	//StackPop(&st);
	STDestroy(&st);
}

int main() {
	test();
	return 0;
}